package com.pureut.quality.export;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentRowHeight;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import lombok.Data;

import javax.validation.constraints.NotBlank;

@Data
@ContentRowHeight(20)
@HeadRowHeight(18)
public class QualityInspectionExport {

    @ExcelProperty("*检测阶别")
    @ColumnWidth(value = 20)
    @NotBlank(message = "检测阶别不能为空")
    private String itemRank;

    @ExcelProperty("*类别")
    @ColumnWidth(value = 20)
    @NotBlank(message = "类别不能为空")
    private String materialType;

    @ExcelProperty("*项目名称")
    @ColumnWidth(value = 20)
    @NotBlank(message = "项目名称不能为空")
    private String itemName;

    @ExcelProperty("*管控方式")
    @ColumnWidth(value = 20)
    @NotBlank(message = "管控方式不能为空")
    private String itemControlMode;

    @ExcelProperty("上限值")
    @ColumnWidth(value = 20)
    private String itemUpperLimit;

    @ExcelProperty("下限值")
    @ColumnWidth(value = 20)
    private String itemLowerLimit;

    @ExcelProperty("单位")
    @ColumnWidth(value = 20)
    private String itemUnit;

    @ExcelProperty("*样本个数")
    @ColumnWidth(value = 20)
    @NotBlank(message = "样本个数不能为空")
    private String itemSampleNumber;

    @ExcelProperty("检测方法")
    @ColumnWidth(value = 20)
    private String itemDetectionMode;

    @ExcelProperty("平均值判断")
    @ColumnWidth(value = 20)
    private String isAverage;

    @ExcelProperty("检测内容")
    @ColumnWidth(value = 20)
    private String itemCheckContent;
}
